<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="net.fckeditor.*"%>
<%@taglib prefix="FCK" uri="http://java.fckeditor.net"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="sdfi.lee.Entity.Person"%>
<%@page import="sdfi.lee.DAO.PersonDAO"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新闻添加</title>
<link rel="stylesheet" href="<c:url value='/css/adnews.css'></c:url>">
<script type="text/javascript" src="<c:url value='/js/jquery-1.6.js'></c:url>"></script>

</head>
<body>
<% 
	Person person=new PersonDAO().getPersonById(Integer.valueOf(request.getParameter("personid")));
request.setAttribute("person",person);
	FCKeditor editor=new FCKeditor(request,"persondescribe");
	editor.setHeight("400px");
	editor.setWidth("600px");
	editor.setValue(person.getPersondescribe());
%>
<div class="contain">
	<form action="<c:url value='/personmf.action'></c:url>" method="post">
		<input type="hidden" value="${param.personid}" name="id">
		<div class="items">
			<strong>人物名字：</strong>
			<input class="text" type="text" name="personname" value="${requestScope.person.personname}">
		</div>
		<div class="items">
			
			<strong>人物类别：</strong><select name="persontype">
			
						<option value="1" selected=<c:if test="${requestScope.person.persontype==1}">'selected'</c:if>>领军人物</option>
						<option value="2" selected=<c:if test="${requestScope.person.persontype==2}">'selected'</c:if>>泰山学者</option>
					</select>
		</div>
		<div class="items">
			<strong>人物简介：</strong><!-- newscontent --><% out.println(editor); %>
		</div>
		<div class="items">
			<input type="submit" value="资料修改">
		</div>
	</form>
</div>
</body>
</html>